﻿using Microsoft.AspNetCore.Razor.TagHelpers;

namespace WXWorkSvc.Common.TagHelpers;

public class BrsTagHelper : TagHelper
{
    public override async Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
    {
        var content = await output.GetChildContentAsync();
        var str = content.GetContent();
        output.Content.SetHtmlContent(str.Replace("&#xD;&#xA;", "<br/>"));
    }
}
